package com.mvp.lt.airlineview.base;

import com.amap.api.maps.model.LatLng;

import java.util.ArrayList;
import java.util.List;

/**
 * @author LiuTao
 * @description:
 * @date : 2020/11/19 10:47
 */
public class DataListUtils {
    private double droneLat = 28.180927;
    private double droneLng = 112.961851;
    private static DataListUtils editInputUtils;

    public static DataListUtils getInstance() {
        if (editInputUtils == null) {
            editInputUtils = new DataListUtils();
        }
        return editInputUtils;
    }




    /**
     * 、
     * 飞行器偏航角 (兴趣点)
     */
    public List<AircraftPojoDataBean> getYawAngleTypeLists() {
        List<AircraftPojoDataBean> list = new ArrayList<>();
        list.add(new AircraftPojoDataBean("沿航线方向", 0));
        list.add(new AircraftPojoDataBean("手动控制", 1));
        list.add(new AircraftPojoDataBean("依照每个航点设置", 2));
        return list;
    }

    public List<AircraftPojoDataBean> getYawAngleTypeIntrestPointLists() {
        List<AircraftPojoDataBean> list = new ArrayList<>();
        list.add(new AircraftPojoDataBean("沿航线方向", 0));
        list.add(new AircraftPojoDataBean("手动控制", 1));
        list.add(new AircraftPojoDataBean("依照每个航点设置", 2));
        list.add(new AircraftPojoDataBean("朝向兴趣点", 3));
        return list;
    }

    /**
     * 云台控制
     *
     * @return
     */
    public List<AircraftPojoDataBean> getPtControlDataBeans() {
        List<AircraftPojoDataBean> list = new ArrayList<>();
        list.add(new AircraftPojoDataBean("手动控制", 0));
        list.add(new AircraftPojoDataBean("依照每个航点设置", 1));
        return list;
    }

    /**
     * 完成动作
     *
     * @return
     */
    public List<AircraftPojoDataBean> getFinishActionDataBeans() {
        List<AircraftPojoDataBean> list = new ArrayList<>();
        list.add(new AircraftPojoDataBean("悬停", 0));
        list.add(new AircraftPojoDataBean("自动返航", 1));
        list.add(new AircraftPojoDataBean("原地降落", 2));
        list.add(new AircraftPojoDataBean("返回航线起始点", 3));
        return list;
    }

    /**
     * 失控动作
     *
     * @return
     */
    public List<AircraftPojoDataBean> getOutControlDataBeans() {
        List<AircraftPojoDataBean> list = new ArrayList<>();
        list.add(new AircraftPojoDataBean("悬停", 0));
        list.add(new AircraftPojoDataBean("原地降落", 1));
        list.add(new AircraftPojoDataBean("自动返航", 2));
        list.add(new AircraftPojoDataBean("继续执行", 3));
        return list;
    }

    public List<AircraftPojoDataBean> getAircraftDirectionRotations() {
        List<AircraftPojoDataBean> list = new ArrayList<>();
        list.add(new AircraftPojoDataBean("顺时针", 0));
        list.add(new AircraftPojoDataBean("逆时针", 1));
        list.add(new AircraftPojoDataBean("自动", 2));
        return list;
    }

    /**
     * 无人机类型
     *
     * @return
     */
    public List<AircraftPojoDataBean> getAircraftModels() {
        List<AircraftPojoDataBean> list = new ArrayList<>();
        list.add(new AircraftPojoDataBean("Phantom 4 RTK", 0));
        list.add(new AircraftPojoDataBean("其他", 1));
        //dataBeans.add(new AircraftPojoDataBean("Matrice 300 RTK", 2));
        return list;
    }

    /**
     * M300的
     * @return
     */
    public List<AircraftPojoDataBean> getM300YawAngleTypes() {
        List<AircraftPojoDataBean> list = new ArrayList<>();
        list.add(new AircraftPojoDataBean("沿航线方向", 0));
        list.add(new AircraftPojoDataBean("手动控制", 1));
        list.add(new AircraftPojoDataBean("朝向兴趣点", 2));
        list.add(new AircraftPojoDataBean("锁定当前偏航", 3));
        list.add(new AircraftPojoDataBean("自定义", 4));
        return list;
    }

    /**
     * 0:曲线飞行，过点不停，1：曲线飞行，到点停，2：直线飞行，到点停，3：协调转弯，不过点，提前转变；
     */
    public List<AircraftPojoDataBean> getM300WayPointTypes() {
        List<AircraftPojoDataBean> list = new ArrayList<>();
        list.add(new AircraftPojoDataBean("曲线飞行，过点不停", 0));
        list.add(new AircraftPojoDataBean("曲线飞行，到点停", 1));
        list.add(new AircraftPojoDataBean("直线飞行，到点停", 2));
        list.add(new AircraftPojoDataBean("协调转弯，不过点，提前转变", 3));
        return list;
    }

    /**
     * 相机 焦距
     *
     * @return
     */
    public List<CameraFocalLengthDataBean> getCameraList() {
        List<CameraFocalLengthDataBean> cameraList = new ArrayList<>();
        cameraList.add(new CameraFocalLengthDataBean("Phantom 4", 0, 24, 2.74));
        cameraList.add(new CameraFocalLengthDataBean("Phantom 4 Pro", 1, 24, 2.74));
        cameraList.add(new CameraFocalLengthDataBean("Phantom 4 RTK", 2, 24, 2.74));
        cameraList.add(new CameraFocalLengthDataBean("Phantom 4 Pro V2.0", 3, 24, 2.74));
        cameraList.add(new CameraFocalLengthDataBean("Phantom 4 Advanced", 4, 24, 2.74));
        cameraList.add(new CameraFocalLengthDataBean("X7(24mm)", 5, 24, 1.63));
        cameraList.add(new CameraFocalLengthDataBean("X7(35mm)", 6, 35, 1.12));
        cameraList.add(new CameraFocalLengthDataBean("Mavic 2 Enterprise Zoom", 7, 24, 3.16));
        cameraList.add(new CameraFocalLengthDataBean("Mavic 2 Enterprise DUAL", 8, 24, 3.06));
        cameraList.add(new CameraFocalLengthDataBean("Zenmuse H20 WIDE", 9, 24, 3.45));
        cameraList.add(new CameraFocalLengthDataBean("其他", 10, 24, 2.74));
        return cameraList;
    }

    /**
     * 拍照模式
     * @return
     */
    public List<AircraftPojoDataBean> getTakePhotoTypeList() {
        List<AircraftPojoDataBean> cameraList = new ArrayList<>();
        cameraList.add(new AircraftPojoDataBean("等时间隔拍照", 0));
        cameraList.add(new AircraftPojoDataBean("等距间隔拍照", 1));
        return cameraList;
    }


}
